package com.sheliduan.itlearning.admin.model.vos.tag;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;


/**
 * @author: 断舍离
 * @date: 2025/2/18 8:43
 * @description: 添加标签入参Vo类
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class AddTagReqVO {

    @NotNull(message = "所属分类不能为空")
    private Integer categoryId;

    // 前台页面是可以一次传入多个标签名的,所以入参Vo类要用集合
    @NotEmpty(message = "标签集合不能为空")
    private List<String> tags;
}
